package com.woniu.defecttracking.service;

import com.woniu.defecttracking.dto.AccountForProjectDto;
import com.woniu.defecttracking.dto.AccountForProjectsDto;
import com.woniu.defecttracking.entity.Account;
import com.woniu.defecttracking.entity.ProjectAccount;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.defecttracking.param.AddProjectAccountParam;
import com.woniu.defecttracking.param.SelAccountParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tiangle
 * @since 2021-12-31
 */
public interface ProjectAccountService extends IService<ProjectAccount> {

    List<Account> findProjectId(Integer id);
    boolean addToProject(AddProjectAccountParam addProjectAccountParam);
    List<Integer> getProjectAccounts(Integer id);
    List<Integer> getProjects(Integer id);
    AccountForProjectsDto getByProject(SelAccountParam selAccountParam);
    boolean del(Integer projectId,Integer accountId);
}
